package cn.simon.free.sensitive.annotation;

import cn.simon.free.sensitive.core.SensitiveUtils;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 自定义脱敏注解
 *
 * @author simon
 * @date 2020/1/13 10:21
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize(using = SensitiveUtils.class)
public @interface Sensitive {
    SensitiveType name();
}
